import service from '@/utils/request'

export const createAdsApi = (data) => {
  return service({
    url: '/adsApi/createAdsApi',
    method: 'post',
    data
  })
}

export const deleteAdsApi = (data) => {
  return service({
    url: '/adsApi/deleteAdsApi',
    method: 'delete',
    data
  })
}

export const deleteAdsApiByIds = (data) => {
  return service({
    url: '/adsApi/deleteAdsApiByIds',
    method: 'delete',
    data
  })
}

export const updateAdsApi = (data) => {
  return service({
    url: '/adsApi/updateAdsApi',
    method: 'put',
    data
  })
}

export const findAdsApi = (params) => {
  return service({
    url: '/adsApi/findAdsApi',
    method: 'get',
    params
  })
}

export const getAdsApiList = (params) => {
  return service({
    url: '/adsApi/getAdsApiList',
    method: 'get',
    params
  })
}

export const getAllAdsApis = (params) => {
  return service({
    url: '/adsApi/getAllAdsApis',
    method: 'get',
    params
  })
}

export const getAdsApi = (data) => {
  return service({
    url: '/adsApi/getAdsApi',
    method: 'post',
    data
  })
}
